import request from '@/utils/request'

// 查询考试信息列表
export function listExaminationinfo(query) {
  return request({
    url: '/system/examinationinfo/list',
    method: 'get',
    params: query
  })
}

// 查询考试信息详细
export function getExaminationinfo(safetyExaminationId) {
  return request({
    url: '/system/examinationinfo/' + safetyExaminationId,
    method: 'get'
  })
}

// 新增考试信息
export function addExaminationinfo(data) {
  return request({
    url: '/system/examinationinfo',
    method: 'post',
    data: data
  })
}

// 修改考试信息
export function updateExaminationinfo(data) {
  return request({
    url: '/system/examinationinfo',
    method: 'put',
    data: data
  })
}

// 删除考试信息
export function delExaminationinfo(safetyExaminationId) {
  return request({
    url: '/system/examinationinfo/' + safetyExaminationId,
    method: 'delete'
  })
}

// 导出考试信息
export function exportExaminationinfo(query) {
  return request({
    url: '/system/examinationinfo/export',
    method: 'get',
    params: query
  })
}